package com.lrs.java.j2se_self.ioReview;
import java.io.*;
public class TestTransform1 {
	public static void main(String[] args){
		try{
			OutputStreamWriter is = new OutputStreamWriter(new FileOutputStream("C:\\test6.java"));
			is.write("张磊");
			System.out.println(is.getEncoding());
			is.close();
			is = new OutputStreamWriter(new FileOutputStream("C:\\test6.java",true),"gb2312");
			is.write("zhangleipd");
			System.out.println(is.getEncoding());
			is.close();
		}catch(IOException e){
			System.out.println("出错饿了");
		}
	}
}
